#pragma once

#include <d3dx9.h>
#include "d3d_texture.h"
#include "..\common\types.h"
#include "..\common\string.h"
#include "d3d_util.h"

/**************************************
 *Implementation of the resource interface
 *for renering 2D graphics on screen
 **************************************/
struct EE_EXPORT D3DImage : public IResource
{
public:
	D3DTexture2D* pTexutre; 
	D3DXVECTOR2 screenPosition; 
	float m_alpha; 
	D3DXMATRIX m_scale; 
	bool m_Draw; 

	D3DImage(CD3D9Device* const pDevice); 

	void Draw(); 
	void SetAlpha(const float value); 
	void SetPosition(const Vector2f &position); 
	void SetScale(const float value); 
	HRESULT Release(); 
	Vector2f GetDimensions();


	string GetType() const; 
	HRESULT Reload(); 
}; 